﻿namespace Merbla.Depend.Logic
{
    public interface IPersonRepository
    {
        Person GetPersonByFirstName(string firstName);
    }

    [NDepend.CQL.CQLConstraint(@"WARN IF Count > 0 IN SELECT TYPES WHERE 
    IsDirectlyUsing ""Merbla.Depend.Logic.IPersonRepository""",
      Active = true, 
      DisplayStatInReport = true, 
      DisplayListInReport = true, 
      DisplaySelectionViewInReport = false)] 
    public class PersonRepository : IPersonRepository
    {
        #region IPersonRepository Members

        public Person GetPersonByFirstName(string firstName)
        {
            return new Person();
        }

        #endregion
    }

    public class Person
    {
    }
}